package com.topdt.jbpm.web.servlet.view;

import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

@XmlRootElement
public class Process {
	@XmlAttribute
	private String name;
	@XmlAttribute
	private String xmlns;
	@XmlElement
	private On on;
	@XmlElement
	private Label start;//開始
	@XmlElement
	private List<Label> task;//任务
	@XmlElement
	private List<Label> fork;//分支
	@XmlElement
	private List<Label> join;//合并
	@XmlElement
	private Label end;//结束
	
	//add by calonlan
	@XmlElement
	private List<Label> foreach;//循环
	@XmlElement
	private List<Label> decision;//决定
	
	public Process(){}
	
	public Process(Label start,Label end){
		this.start = start;
		this.end = end;
	}
	@XmlTransient
	public List<Label> getTask() {
		return task;
	}
	
	public void setTask(List<Label> task) {
		this.task = task;
	}
	@XmlTransient
	public List<Label> getFork() {
		return fork;
	}

	public void setFork(List<Label> fork) {
		this.fork = fork;
	}
	@XmlTransient
	public List<Label> getJoin() {
		return join;
	}

	public void setJoin(List<Label> join) {
		this.join = join;
	}

	@XmlTransient
	public Label getEnd() {
		return end;
	}
	
	public void setEnd(Label end) {
		this.end = end;
	}
	
	@XmlTransient
	public Label getStart() {
		return start;
	}

	public void setStart(Label start) {
		this.start = start;
	}
	@XmlTransient
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@XmlTransient
	public String getXmlns() {
		return xmlns;
	}
	public void setXmlns(String xmlns) {
		this.xmlns = xmlns;
	}

	@XmlTransient
	public On getOn() {
		return on;
	}

	public void setOn(On on) {
		this.on = on;
	}
	@XmlTransient
	public List<Label> getForeach() {
		return foreach;
	}

	public void setForeach(List<Label> foreach) {
		this.foreach = foreach;
	}
	@XmlTransient
	public List<Label> getDecision() {
		return decision;
	}

	public void setDecision(List<Label> decision) {
		this.decision = decision;
	}
	
	
}
